package Repositorio;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class RepositorioSolucao {
    
    private Connection conn;
    private String query;
    private PreparedStatement stmt;
    private ResultSet rs;
    
    public void salvarSolucao(String scolpSolucao) throws SQLException{
        conn = LinkDB.Conexao.getConexao();
        query = "INSER INTO solucao(scolpSolucao) VALUES(?)";
        stmt = conn.prepareStatement(query);
        stmt.setString(1, scolpSolucao);
        stmt.executeUpdate();
        stmt.close();
        conn.close();
    }
    
}
